<gm:page title="Demo - geolocationref attribute" authenticate="false">

<div class="gm-app-header">
<h2>Geoencoding and plotting addresses using 'geolocationref' attribute<h2>
</div> 

<table width="100%">
<tr>
<td width="265" valign="top">
<gm:list id="myList" data="http://www.mapnut.com/calstatepark.xml" template="myListTemplate">
<gm:handleEvent event="select" src="myMap"/>
</gm:list>
</td>
<td width="10">
</td>
<td valign="top">
<gm:map id="myMap" style="border:solid black 1px" height="520" data="http://www.mapnut.com/calstatepark.xml" geolocationref="ymaps:CityState" infotemplate="myMapDetailsTemplate">
<gm:handleEvent event="select" src="myList"/>
</gm:map>
</td>
</tr>
</table>

<gm:template id="myListTemplate">
<table class="gray-theme">
<thead>
<tr>
<td colspan="2">Bus Stops</td>
</tr>
</thead>
<tr repeat="true">
<td><gm:text ref="title"/></td>
</tr>
</table>
</gm:template>

<gm:template id="myMapDetailsTemplate">
<h2><gm:text ref="title"/></h2>
<gm:text ref="gmd:location"/>
</gm:template>


</gm:page>



